package com.cff.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Properties;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.swing.AbstractButton;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.text.JTextComponent;

import com.cff.common.Constant;
import com.cff.common.SimpleFrame;
import com.cff.util.EventUtil;
import com.cff.util.FileUtil;
import com.cff.util.SignTools;

public class AboutReadMeActionListener implements ActionListener {
	private static Properties confPro = null;
	
	public AboutReadMeActionListener() {
		super();
	}


	@Override
	public void actionPerformed(ActionEvent e) {
		confPro = FileUtil.getInstance();
		JFrame tmpFrame = new JFrame();
		tmpFrame.setBounds(100, 100, 600, 400);
		tmpFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		tmpFrame.setLayout(null);
		tmpFrame.setTitle("使用帮助");
		
		JLabel label1 = new JLabel();
		label1.setBounds(20, 10, 580, 50);
		label1.setText(confPro.getProperty("aboutReame1"));
		JLabel label2 = new JLabel();
		label2.setBounds(20, 30, 580, 50);
		label2.setText(confPro.getProperty("aboutReame2"));
		JLabel label3 = new JLabel();
		label3.setBounds(20, 50, 580, 50);
		label3.setText(confPro.getProperty("aboutReame3"));
		JLabel label4 = new JLabel();
		label4.setBounds(20, 70, 580, 50);
		label4.setText(confPro.getProperty("aboutReame4"));
		JLabel label5 = new JLabel();
		label5.setBounds(20, 90, 580, 50);
		label5.setText(confPro.getProperty("aboutReame5"));
		JLabel label6 = new JLabel();
		label6.setBounds(20, 110, 580, 50);
		label6.setText(confPro.getProperty("aboutReame6"));
		JLabel label7 = new JLabel();
		label7.setBounds(20, 110, 580, 50);
		label7.setText(confPro.getProperty("aboutReame7"));
		
		tmpFrame.add(label1);
		tmpFrame.add(label2);
		tmpFrame.add(label3);
		tmpFrame.add(label4);
		tmpFrame.add(label5);
		tmpFrame.add(label6);
		tmpFrame.add(label7);
		tmpFrame.setVisible(true);
		
	}

}
